package week9.pretect1;

public class Bird extends Animal {
    private String color;

    public Bird(String color,int age) {
        super(age);
        this.color = color;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    @Override
    public void info(){
        System.out.println("我一只"+color+"的鸟");
        super.info();
    }
}
